using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[Serializable]
public class C_AnimEvent
{
    [ReadOnly]
    public string animEventName;
    public AnimEventType type;
    public bool hasSwitchAnim;
    public int switchAnimIndex;
    public string switchAnim;
    public bool isSwitchDelay;
    public float switchDelayTime;
    public bool hasFunc;
    public List<AnimFunc> animFuncList;
    public bool isFuncDelay;
    public float funcDelayTime;
    public bool foldout = true;
    public bool isFrameRange = false;
    public int frameNumber;
    public bool isAllFrameRange = true;
    public Vector2 frameRange;
    #region Interrupt
    public bool isSecond;
    public float interruptTime;
    #endregion
}
[Serializable]
public enum AnimEventType
{
    Start, //第一帧开始前
    End, //转换动画前
    StartAttack,
    EndAttack,
    StartSkill,
    EndSkill,
    Interrupt,
}
[Serializable]
public class AnimFunc
{
    public int funcNameIndex;
    public string funcName;
    public bool hasVariable;
    public bool isOfVariableList;
    [SerializeField]
    public Variable variable;
    public bool foldout;
}
